local sk__songsang = fk.CreateSkill {

  name = "sk__songsang",

  tags = { Skill.Compulsory, },

}



sk__songsang:addEffect(fk.Death, {
  name = "sk__songsang",
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(sk__songsang.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    if player:getMark("@sk__guolun") == 0 then
      room:setPlayerMark(player, "@sk__guolun", "status2")
    else
      local n = tonumber(player:getMark("@sk__guolun")[7])
      if n < 4 then
        room:setPlayerMark(player, "@sk__guolun", "status"..(n + 1))
      end
    end
    player:drawCards(#room.alive_players, sk__songsang.name)
  end,
})

return sk__songsang